import request from '@/utils/request'

export function listsysPermission(query) {
  return request({
    url: '/sys/sysPermission/list',
    method: 'get',
    params: query
  })
}

export function createsysPermission(data) {
  return request({
    url: '/sys/sysPermission/create',
    method: 'post',
    data
  })
}

export function readsysPermission(data) {
  return request({
    url: '/sys/sysPermission/get/' + data.id,
    method: 'get'
  })
}

export function updatesysPermission(data) {
  return request({
    url: '/sys/sysPermission/update',
    method: 'post',
    data
  })
}

export function deletesysPermission(data) {
  return request({
    url: '/sys/sysPermission/delete/' + data.id,
    method: 'delete'
  })
}
